from myelin.Ns import MYELIN
from Container import Container

from ObjectTypes import \
    EntryTypeO, EntryTypeS, \
    CommentTypeO

from mappings import \
    ContainsMap

class Entry(Container):
    
    ModelTypes = (EntryTypeO, EntryTypeS)
    
    RDF_BINDINGS = {
        'mComment'             : ((MYELIN, 'comment'), CommentTypeO, ContainsMap),
            
        'mHasPart'              : ['mComment',]
    }

    
CLASS_TYPES = {
    MYELIN + 'Entry' : Entry,
}